﻿#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLuaBase.lua_CSFunction;
#endif

using XLua;
using System.Collections.Generic;


namespace XLua.CSObjectWrap
{
    using Utils = XLua.Utils;
    public class YoozooGameplayYGUICustomYEmojiTextWrap 
    {
        public static void __Register(RealStatePtr L)
        {
			ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			System.Type type = typeof(Yoozoo.Gameplay.YGUICustom.YEmojiText);
			Utils.BeginObjectRegister(type, L, translator, 0, 4, 5, 4);
			
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddImage", _m_AddImage);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddImages", _m_AddImages);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearImages", _m_ClearImages);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetTextProText", _m_SetTextProText);
			
			
			Utils.RegisterFunc(L, Utils.GETTER_IDX, "OriginalText", _g_get_OriginalText);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "text", _g_get_text);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "tagStartChar", _g_get_tagStartChar);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "tagEndChar", _g_get_tagEndChar);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "tagSplitChar", _g_get_tagSplitChar);
            
			Utils.RegisterFunc(L, Utils.SETTER_IDX, "text", _s_set_text);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "tagStartChar", _s_set_tagStartChar);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "tagEndChar", _s_set_tagEndChar);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "tagSplitChar", _s_set_tagSplitChar);
            
			
			Utils.EndObjectRegister(type, L, translator, null, null,
			    null, null, null);

		    Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0);
			Utils.RegisterFunc(L, Utils.CLS_IDX, "SelfRefreshTextWithEllipsis", _m_SelfRefreshTextWithEllipsis_xlua_st_);
            
			
            
			
			
			
            Utils.RegisterFunc(L, Utils.CLS_IDX, "New", __CreateInstanceNew);
			Utils.EndClassRegister(type, L, translator);
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstance(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 1)
				{
					
					var gen_ret = new Yoozoo.Gameplay.YGUICustom.YEmojiText();
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Gameplay.YGUICustom.YEmojiText constructor!");
            
        }

        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstanceNew(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 0)
				{
					
					var gen_ret = new Yoozoo.Gameplay.YGUICustom.YEmojiText();
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Gameplay.YGUICustom.YEmojiText constructor!");
            
        }

        
		
        
		
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SelfRefreshTextWithEllipsis_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 3&& translator.Assignable<Yoozoo.Gameplay.YGUICustom.YEmojiText>(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) 
                {
                    Yoozoo.Gameplay.YGUICustom.YEmojiText _t = (Yoozoo.Gameplay.YGUICustom.YEmojiText)translator.GetObject(L, 1, typeof(Yoozoo.Gameplay.YGUICustom.YEmojiText));
                    string _ellipsis = LuaAPI.lua_tostring(L, 2);
                    int _maxLenght = LuaAPI.xlua_tointeger(L, 3);
                    
                    Yoozoo.Gameplay.YGUICustom.YEmojiText.SelfRefreshTextWithEllipsis( _t, _ellipsis, _maxLenght );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 2&& translator.Assignable<Yoozoo.Gameplay.YGUICustom.YEmojiText>(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) 
                {
                    Yoozoo.Gameplay.YGUICustom.YEmojiText _t = (Yoozoo.Gameplay.YGUICustom.YEmojiText)translator.GetObject(L, 1, typeof(Yoozoo.Gameplay.YGUICustom.YEmojiText));
                    string _ellipsis = LuaAPI.lua_tostring(L, 2);
                    
                    Yoozoo.Gameplay.YGUICustom.YEmojiText.SelfRefreshTextWithEllipsis( _t, _ellipsis );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 1&& translator.Assignable<Yoozoo.Gameplay.YGUICustom.YEmojiText>(L, 1)) 
                {
                    Yoozoo.Gameplay.YGUICustom.YEmojiText _t = (Yoozoo.Gameplay.YGUICustom.YEmojiText)translator.GetObject(L, 1, typeof(Yoozoo.Gameplay.YGUICustom.YEmojiText));
                    
                    Yoozoo.Gameplay.YGUICustom.YEmojiText.SelfRefreshTextWithEllipsis( _t );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Gameplay.YGUICustom.YEmojiText.SelfRefreshTextWithEllipsis!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_AddImage(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.YGUICustom.YEmojiText gen_to_be_invoked = (Yoozoo.Gameplay.YGUICustom.YEmojiText)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    Yoozoo.Gameplay.YGUICustom.YEmojiText.EmojiData _emojiData;translator.Get(L, 2, out _emojiData);
                    
                    gen_to_be_invoked.AddImage( _emojiData );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_AddImages(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.YGUICustom.YEmojiText gen_to_be_invoked = (Yoozoo.Gameplay.YGUICustom.YEmojiText)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    System.Collections.Generic.IEnumerable<Yoozoo.Gameplay.YGUICustom.YEmojiText.EmojiData> _SpriteInfos = (System.Collections.Generic.IEnumerable<Yoozoo.Gameplay.YGUICustom.YEmojiText.EmojiData>)translator.GetObject(L, 2, typeof(System.Collections.Generic.IEnumerable<Yoozoo.Gameplay.YGUICustom.YEmojiText.EmojiData>));
                    
                    gen_to_be_invoked.AddImages( _SpriteInfos );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ClearImages(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.YGUICustom.YEmojiText gen_to_be_invoked = (Yoozoo.Gameplay.YGUICustom.YEmojiText)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.ClearImages(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetTextProText(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.YGUICustom.YEmojiText gen_to_be_invoked = (Yoozoo.Gameplay.YGUICustom.YEmojiText)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    string _text = LuaAPI.lua_tostring(L, 2);
                    
                        var gen_ret = gen_to_be_invoked.SetTextProText( _text );
                        LuaAPI.lua_pushstring(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_OriginalText(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.YGUICustom.YEmojiText gen_to_be_invoked = (Yoozoo.Gameplay.YGUICustom.YEmojiText)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushstring(L, gen_to_be_invoked.OriginalText);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_text(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.YGUICustom.YEmojiText gen_to_be_invoked = (Yoozoo.Gameplay.YGUICustom.YEmojiText)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushstring(L, gen_to_be_invoked.text);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_tagStartChar(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.YGUICustom.YEmojiText gen_to_be_invoked = (Yoozoo.Gameplay.YGUICustom.YEmojiText)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.tagStartChar);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_tagEndChar(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.YGUICustom.YEmojiText gen_to_be_invoked = (Yoozoo.Gameplay.YGUICustom.YEmojiText)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.tagEndChar);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_tagSplitChar(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.YGUICustom.YEmojiText gen_to_be_invoked = (Yoozoo.Gameplay.YGUICustom.YEmojiText)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.tagSplitChar);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_text(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.YGUICustom.YEmojiText gen_to_be_invoked = (Yoozoo.Gameplay.YGUICustom.YEmojiText)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.text = LuaAPI.lua_tostring(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_tagStartChar(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.YGUICustom.YEmojiText gen_to_be_invoked = (Yoozoo.Gameplay.YGUICustom.YEmojiText)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.tagStartChar = (char)LuaAPI.xlua_tointeger(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_tagEndChar(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.YGUICustom.YEmojiText gen_to_be_invoked = (Yoozoo.Gameplay.YGUICustom.YEmojiText)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.tagEndChar = (char)LuaAPI.xlua_tointeger(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_tagSplitChar(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.YGUICustom.YEmojiText gen_to_be_invoked = (Yoozoo.Gameplay.YGUICustom.YEmojiText)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.tagSplitChar = (char)LuaAPI.xlua_tointeger(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
		
		
		
		
    }
}
